package org.theonept.travian.model;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import org.theonept.travian.t4a.R;

public enum EnumTroupeGaulois {
	PHALANGE("u21", R.drawable.gaulois1, EnumTypeUnite.INFANTERIE, "t1"), COMBATTANT_A_LEPEE(
			"u22", R.drawable.gaulois2, EnumTypeUnite.INFANTERIE, "t2"), ECLAIREUR(
			"u23", R.drawable.gaulois3, EnumTypeUnite.CAVALERIE, "t3"), ECLAIR_DE_TOUTATIS(
			"u24", R.drawable.gaulois4, EnumTypeUnite.CAVALERIE, "t4"), CAVALIER_DRUIDE(
			"u25", R.drawable.gaulois5, EnumTypeUnite.CAVALERIE, "t5"), HEDOIN(
			"u26", R.drawable.gaulois6, EnumTypeUnite.CAVALERIE, "t6"), BELIER(
			"u27", R.drawable.gaulois7, EnumTypeUnite.SIEGE, "t7"), CATAPULTE_DE_GUERRE(
			"u28", R.drawable.gaulois8, EnumTypeUnite.SIEGE, "t8"), CHEF("u29",
			R.drawable.gaulois9, EnumTypeUnite.GOUVERNEMENT, "t9"), COLON(
			"u30", R.drawable.gaulois10, EnumTypeUnite.GOUVERNEMENT, "t10"), HERO(
			"uhero", R.drawable.hero, null, null);

	private String code;
	private int idImage;
	private String libele;
	private EnumTypeUnite typeUnite;
	private String idConstruct;

	private EnumTroupeGaulois(String code, int idImage,
			EnumTypeUnite typeUnite, String idConstruct) {
		this.idConstruct = idConstruct;
		this.setTypeUnite(typeUnite);
		this.code = code;
		this.setIdImage(idImage);

	}

	/**
	 * @return the libele
	 */
	public String getLibele() {
		return libele;
	}

	/**
	 * @param libele
	 *            the libele to set
	 */
	public void setLibele(String libele) {
		this.libele = libele;
	}

	/**
	 * @return the idImage
	 */
	public int getIdImage() {
		return idImage;
	}

	/**
	 * @param idImage
	 *            the idImage to set
	 */
	public void setIdImage(int idImage) {
		this.idImage = idImage;
	}

	/**
	 * @return the code
	 */
	public String getCode() {
		return code;
	}

	/**
	 * @param code
	 *            the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * @return the typeUnite
	 */
	public EnumTypeUnite getTypeUnite() {
		return typeUnite;
	}

	/**
	 * @param typeUnite
	 *            the typeUnite to set
	 */
	public void setTypeUnite(EnumTypeUnite typeUnite) {
		this.typeUnite = typeUnite;
	}

	public NameValuePair getListNameValuePair(Integer nb) {

		return new BasicNameValuePair(idConstruct, String.valueOf(nb));
	}
}
